# Contributor: Iskren Chernev <iskren.chernev@gmail.com>
# Maintainer: Iskren Chernev <iskren.chernev@gmail.com>
pkgname=py3-dt-schema
pkgver=2020.05
pkgrel=0
pkgdesc="Devicetree schema tools"
url="https://github.com/devicetree-org/dt-schema"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-ruamel.yaml py3-jsonschema py3-rfc3987"
makedepends="py3-setuptools py3-pip"
source="dt-schema-$pkgver.tar.gz::https://github.com/devicetree-org/dt-schema/archive/v$pkgver.tar.gz"
builddir="$srcdir/dt-schema-$pkgver"

options="!check" # No tests

build() {
	SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python3 setup.py build
}

package() {
	SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="85b2a614e5424da4b20002935c0973f66febc12dd96c1497d548cb7fca67a5f2a1b48d5ef297e0dab33a95682aa08626a8304f5ea6f18b875d689f7f964ae089  dt-schema-2020.05.tar.gz"
